<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>::Happy - DTAC Prepaid Phone::</title>
<link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/global-en.css" rel="stylesheet" type="text/css">
<link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css">
<script src="${RESOURCE}/eng/include/AC_RunActiveContent.js" type="text/javascript"></script>
<script language=JavaScript>
function printWindow(){
browserVersion = parseInt(navigator.appVersion)
if (browserVersion >= 4) window.print()
}

function include(xUrl,xId) {
  var xmlhttp = false;
  /*@cc_on @*/
  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {
          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)
}


<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


// Declaring required variables
var digits = "0123456789";

// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()- ";

// characters which are allowed in international phone numbers
// (a leading + is OK)
var validWorldPhoneChars = phoneNumberDelimiters + "+";

// Minimum no of digits in an international phone no.
var minDigitsInIPhoneNumber = 10;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }

    // All characters are numbers.
    return true;
}

function stripCharsInBag(s, bag)
{   var i;
    var returnString = "";

    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }

    return returnString;
}

function checkInternationalPhone(strPhone){
	s = stripCharsInBag(strPhone,validWorldPhoneChars);
	return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}

function ValidateForm(){
	var Phone=document.form1.inputUserName;

	document.form1.submit();
 }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//-->

function cancel(){
	var f = document.forms[0];
	if(isNoCheckBox(f.packExist)){
			alert("Please select service for cancel.");
			f.packExist.focus();
	}else{
	var msg = "<br>You have requested to cancel the service.<br><br>";
	var w = 400;
	var h = 170;
	var l = (screen.width - w) / 2; 
	var t = (screen.height - h ) / 2; 
	f.hdConfirmMsg.value = msg;
	f.mode.value = "cancel";
	window.open("/bp3/bin/confirm?mode=N&lang=E", "VoiceMailSystem", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);
	}
	
}

function edit(){
	var f = document.forms[0];
	var msg = "<br>You have selected the option of changing your language preference for SMS and IVR service. <br><br>Please press confirm to proceed.<br><br>";
	var w = 550;
	var h = 170;
	var l = (screen.width - w) / 2; 
	var t = (screen.height - h ) / 2; 
	f.hdConfirmMsg.value = msg;	
	f.mode.value = "edit";
	window.open("/bp3/bin/confirm?mode=N&lang=E", "VoiceMailSystem", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);
}

function apply(){
	var f = document.forms[0];
	var element = "";
	if(isNoCheckBox(f.packNotExist)){
			alert("Please select service for apply.");
			f.packNotExist.focus();
	}else{
	
	for(var i=0;i<f.packNotExist.length;i++){
			if(f.packNotExist[i].checked){		
				element = f.packNotExist[i].id;
			}
		}
	if(f.packNotExist.checked){
			element = f.packNotExist.id;
		}
	
	var msg = "<br>You have requested to apply for " + element + "<br>No Registration fee for this service.<br><br>";
	var w = 400;
	var h = 170;
	var l = (screen.width - w) / 2; 
	var t = (screen.height - h ) / 2; 
	f.hdConfirmMsg.value = msg;
	f.mode.value = "apply";
	window.open("/bp3/bin/confirm?mode=N&lang=E", "VoiceMailSystem", "width=" + w + ", height=" + h + ", top=" + t + ", left=" + l);
	}
	
}

function isNoCheckBox(objNumb){
		for(var i=0;i<objNumb.length;i++){
			if(objNumb[i].checked){		
				return false;
			}
		}
		if(objNumb.checked){
			return false;
		}
		return true;
}

</script> 

</head>
<body>
<div id="header">
    <%@include file="../head.jsp" %>
</div>

<div id="container">
	<div id="pathway"><a href="/bp3/bin/DpromptIndex" class="link2">Web service</a> > <a href="/bp3/bin/Dspc/DpromptWelcome" class="link2">Profile and Service</a> &gt; *77 Service</div>
	<div id="main">
    	<%@ include file="../menu.jsp" %>
    	<div id="content">
        	<div class="content-middle">
                
                <!--เนื้อหาเริ่มที่นี่-->
                <h3><img src="${RESOURCE}/eng/images/14_webservice_head01.gif"></h3>
               	<table width="100%" cellpadding="2" cellspacing="2" height="500">
                  	<tr>
                    	<td valign="top">
                        
                        	<table width="650" border="0" cellspacing="0" cellpadding="0">
                                <!--SVLT.VAR:CONF_TOP-->
                                <tr> 
                                  <td><table width="100%" border="0" cellspacing="3" cellpadding="0">
                                      <tr> 
                                        <td width="2%"><img src="${RESOURCE}/eng/images/14_webservice_bullet01.gif" width="9" height="9"></td>
                                        <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/eng/images/14_webservice_subtitle25.gif" border="0"></td>
                                      </tr>
                                      <tr> 
                                        <td>&nbsp;</td>
                                        <td class="textnormal">This service includes both voicemail and Jeaw (miss no more call service), for more information on the value added service 
										<a href="javascript:;" class="textnormalpink_bold" onClick="MM_openBrWindow('http://vas.happy.co.th/home.htm','nonumberdetail','scrollbars=yes,width=700,height=600')">click 
            here. </a>
										</td>
                                      </tr>
                                    </table></td>
                                </tr>
                                <tr> 
                                  <td height="15" align="left">
								  <form action="/bp3/bin/Dspc/DpromptVoiceMailSystem" method="post" name="form" id="form"> 
                                      <table width="85%" border="0" align="center" cellpadding="2" cellspacing="2">
                                        <tr> 
                                          <td width="45%" height="30" align="center" bgcolor="#11A5C6"><span class="textnormalwhite_bold">Register 
                                            or modify the service</span></td>
                                        </tr>
                                        <tr style="display:<!--SVLT.VAR:displayExistPack-->"> 
                                          <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                              <tr> 
                                                <td width="1"><img src="${RESOURCE}/eng/images/14_table_01.gif" width="10" height="10"></td>
                                                <td background="${RESOURCE}/eng/images/14_table_05.gif"><img src="${RESOURCE}/eng/images/14_table_05.gif" width="10" height="10"></td>
                                                <td width="1"><img src="${RESOURCE}/eng/images/14_table_02.gif" width="10" height="10"></td>
                                              </tr>
                                              <tr> 
                                                <td background="${RESOURCE}/eng/images/14_table_06.gif"><img src="${RESOURCE}/eng/images/14_table_06.gif" width="10" height="10"></td>
                                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr> 
                                                      <td height="25" colspan="2" class="textnormal_bold">Services 
                                                        that have already been 
                                                        registered</td>
                                                    </tr>
													<!--SVLT.LOOP:resultExist-->
                                                    <tr bgcolor="<!--SVLT.VAR:bgExist-->"> 
                                                      <td width="20">
                                                        <!--SVLT.VAR:packExistChck-->/><input type="radio" name="packExist" value="<!--SVLT.VAR:packExist-->,<!--SVLT.VAR:lastChngDttm-->,<!--SVLT.VAR:seqn-->" <!--SVLT.VAR:packExistChck-->/></td>
                                                      <td  width="492" class="textnormal" > 
                                                        <!--SVLT.VAR:suppPackageExist-->
                                                      </td>
                                                    </tr>
                                                    <tr> 
                                                      <td height="1" colspan="2"><img src="${RESOURCE}/eng/images/clear.gif" width="1" height="1"></td>
                                                    </tr>
													<!--SVLT.END:resultExist-->
                                                  </table>
                                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr> 
                                                      <td width="70%" align="right"><table width="95%" border="0" cellspacing="3" cellpadding="0">
                                                          <tr> 
                                                            <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                            <td width="98%" align="left" class="textnormal"><span class="textredsmall">Should 
                                                              you wish to cancel 
                                                              the service, check 
                                                              the appropriate 
                                                              box </span><span class="textredsmall">then 
                                                              press cancel</span></td>
                                                          </tr>
                                                        </table></td>
                                                      <td align="right" valign="bottom"><table width="1%" border="0" cellspacing="0" cellpadding="5">
                                                          <tr> 
                                                            <td width="97%" height="45"><a href="javascript:cancel()"><img src="${RESOURCE}/eng/images/14_webservice_cancel.gif" width="58" height="23" border="0"></a></td>
                                                          </tr>
                                                        </table></td>
                                                    </tr>
                                                  </table></td>
                                                <td background="${RESOURCE}/eng/images/14_table_07.gif"><img src="${RESOURCE}/eng/images/14_table_07.gif" width="10" height="10" border="0"></td>
                                              </tr>
                                              <tr> 
                                                <td><img src="${RESOURCE}/eng/images/14_table_03.gif" width="10" height="10"></td>
                                                <td background="${RESOURCE}/eng/images/14_table_08.gif"><img src="${RESOURCE}/eng/images/14_table_08.gif" width="10" height="10"></td>
                                                <td><img src="${RESOURCE}/eng/images/14_table_04.gif" width="10" height="10"></td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                        <tr style="display:<!--SVLT.VAR:displayNotExistPack-->"> 
                                          <td align="left">&nbsp;</td>
                                        </tr>
                                        <tr style="display:<!--SVLT.VAR:displayNotExistPack-->"> 
                                          <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                              <tr> 
                                                <td width="1"><img src="${RESOURCE}/eng/images/14_table_01.gif" width="10" height="10"></td>
                                                <td background="${RESOURCE}/eng/images/14_table_05.gif"><img src="${RESOURCE}/eng/images/14_table_05.gif" width="10" height="10"></td>
                                                <td width="1"><img src="${RESOURCE}/eng/images/14_table_02.gif" width="10" height="10"></td>
                                              </tr>
                                              <tr> 
                                                <td background="${RESOURCE}/eng/images/14_table_06.gif"><img src="${RESOURCE}/eng/images/14_table_06.gif" width="10" height="10"></td>
                                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr> 
                                                      <td height="25" colspan="2" class="textnormal_bold">Services 
                                                        that you are not registered 
                                                        for </td>
                                                    </tr>
													<!--SVLT.LOOP:resultNotExist-->
                                                    <tr  bgcolor="<!--SVLT.VAR:bgNotExist-->"> 
                                                     <td width="20"><!--SVLT.VAR:packNotExistChck--> /><input type="radio" name="packNotExist"  id="<!--SVLT.VAR:suppPackageNotExist-->" value="<!--SVLT.VAR:packNotExist-->" <!--SVLT.VAR:packNotExistChck--> /></td>
                                                      <td width="492" class="textnormal" >
                                                        <!--SVLT.VAR:suppPackageNotExist-->
                                                      </td>
                                                    </tr>
                                                    <tr> 
                                                      <td height="1" colspan="2"><img src="${RESOURCE}/eng/images/clear.gif" width="1" height="1"></td>
                                                    </tr>
													<!--SVLT.END:resultNotExist-->
                                                  </table>
                                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr> 
                                                      <td width="70%" align="right"><table width="95%" border="0" cellspacing="3" cellpadding="0">
                                                          <tr> 
                                                            <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                            <td width="98%" align="left" class="textnormal"><span class="textredsmall">Should 
                                                              you wish to register 
                                                              for the service, 
                                                              check the appropriate 
                                                              box of that service 
                                                              then press register</span><span class="textredsmall"></span></td>
                                                          </tr>
                                                        </table></td>
                                                      <td align="right" valign="bottom"><table width="1%" border="0" cellspacing="0" cellpadding="5">
                                                          <tr> 
                                                            <td height="45"><a href="javascript:apply()"><img src="${RESOURCE}/eng/images/14_gointer_apply_btn2.gif" width="67" height="23" border="0"></a></td>
                                                          </tr>
                                                        </table></td>
                                                    </tr>
                                                  </table></td>
                                                <td background="${RESOURCE}/eng/images/14_table_07.gif"><img src="${RESOURCE}/eng/images/14_table_07.gif" width="10" height="10" border="0"></td>
                                              </tr>
                                              <tr> 
                                                <td><img src="${RESOURCE}/eng/images/14_table_03.gif" width="10" height="10"></td>
                                                <td background="${RESOURCE}/eng/images/14_table_08.gif"><img src="${RESOURCE}/eng/images/14_table_08.gif" width="10" height="10"></td>
                                                <td><img src="${RESOURCE}/eng/images/14_table_04.gif" width="10" height="10"></td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                        <tr style="display:<!--SVLT.VAR:displayLang-->"> 
                                          <td align="left">&nbsp;</td>
                                        </tr>
                                        <tr style="display:<!--SVLT.VAR:displayLang-->"> 
                                          <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                              <tr> 
                                                <td width="1"><img src="${RESOURCE}/eng/images/14_table_01.gif" width="10" height="10"></td>
                                                <td background="${RESOURCE}/eng/images/14_table_05.gif"><img src="${RESOURCE}/eng/images/14_table_05.gif" width="10" height="10"></td>
                                                <td width="1"><img src="${RESOURCE}/eng/images/14_table_02.gif" width="10" height="10"></td>
                                              </tr>
                                              <tr> 
                                                <td background="${RESOURCE}/eng/images/14_table_06.gif"><img src="${RESOURCE}/eng/images/14_table_06.gif" width="10" height="10"></td>
                                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr> 
                                                      <td width="512" height="25" colspan="2" class="textnormal_bold">Change 
                                                        language preference</td>
                                                    </tr>
                                                  </table>
                                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr style="display:<!--SVLT.VAR:displaySMS-->"> 
                                                      <td width="20" bgcolor="#EDEDED">&nbsp;</td>
                                                      <td width="370" bgcolor="#EDEDED" class="textnormal">SMS</td>
                                                      <td width="1" bgcolor="#EDEDED"><!--SVLT.VAR:smsLangTh-->><input name="smsLang" type="radio" value="T" <!--SVLT.VAR:smsLangTh-->></td>
                                                      <td width="50" bgcolor="#EDEDED"><span class="textnormal">Thai</span></td>
                                                      <td width="1" bgcolor="#EDEDED"><!--SVLT.VAR:smsLangEn-->><input name="smsLang" type="radio" value="E" <!--SVLT.VAR:smsLangEn-->></td>
                                                      <td bgcolor="#EDEDED" class="textnormal">English</td>
                                                    </tr>
                                                    <tr> 
                                                      <td height="1" colspan="6"><img src="${RESOURCE}/eng/images/clear.gif" width="1" height="1"></td>
                                                    </tr>
                                                    <tr style="display:<!--SVLT.VAR:displayIVR-->"> 
                                                      <td width="20"  bgcolor="#FFFFFF">&nbsp;</td>
                                                      <td width="370" bgcolor="#FFFFFF" class="textnormal">IVR *1802</td>
                                                      <td width="1" bgcolor="#FFFFFF"><!--SVLT.VAR:ivrLangTh-->><input name="ivrLang" type="radio" value="T"<!--SVLT.VAR:ivrLangTh-->></td>
                                                      <td width="50" bgcolor="#FFFFFF"><span class="textnormal">Thai</span></td>
                                                      <td width="1" bgcolor="#FFFFFF"><!--SVLT.VAR:ivrLangEn-->><input name="ivrLang" type="radio" value="E" <!--SVLT.VAR:ivrLangEn-->></td>
                                                      <td bgcolor="#FFFFFF"><span class="textnormal">English</span></td>
                                                    </tr>
                                                  </table>
                                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr> 
                                                      <td width="70%" align="right"><table width="95%" border="0" cellspacing="3" cellpadding="0">
                                                          <tr> 
                                                            <td width="2%" valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                            <td width="98%" align="left" class="textnormal"><span class="textredsmall">Language 
                                                              change applies to 
                                                              both service</span></td>
                                                          </tr>
                                                          <tr> 
                                                            <td valign="baseline"><img src="${RESOURCE}/eng/images/bullet_grey.gif" width="9" height="9"></td>
                                                            <td align="left" class="textnormal"><span class="textredsmall">Should 
                                                              you wish to change 
                                                              the language, check 
                                                              the desired language 
                                                              then press confirm 
                                                              edit</span></td>
                                                          </tr>
                                                        </table></td>
                                                      <td align="right" valign="bottom"><table width="1%" border="0" cellspacing="0" cellpadding="5">
                                                          <tr> 
                                                            <td height="45" align="center"><a href="javascript:edit()"><img src="${RESOURCE}/eng/images/14_gointer_chang_lan_btn.gif" width="123" height="23" border="0"></a></td>
                                                          </tr>
                                                        </table></td>
                                                    </tr>
                                                  </table></td>
                                                <td background="${RESOURCE}/eng/images/14_table_07.gif"><img src="${RESOURCE}/eng/images/14_table_07.gif" width="10" height="10" border="0"></td>
                                              </tr>
                                              <tr> 
                                                <td><img src="${RESOURCE}/eng/images/14_table_03.gif" width="10" height="10"></td>
                                                <td background="${RESOURCE}/eng/images/14_table_08.gif"><img src="${RESOURCE}/eng/images/14_table_08.gif" width="10" height="10"></td>
                                                <td><img src="${RESOURCE}/eng/images/14_table_04.gif" width="10" height="10"></td>
                                              </tr>
                                            </table></td>
                                        </tr>
                                      </table>
                                      <br>
                                      <br> 
									<input type="hidden" name="hdConfirmMsg" value="">
									<input  name="func"  type="hidden"  value="">
									<input  name="mode"  type="hidden"  value="">
									</form>
									<p>&nbsp;</p>
                                    <p>&nbsp;</p></td>
                                </tr>
                                <!--SVLT.VAR:CONF_BOTTOM-->
                              </table>
                        
                        </td>
                 	</tr>
              	</table>                
                <!--เนื้อหาสิ้นสุดที่นี่-->
                
            </div>
            <div class="content-bottom"></div>
        </div>
    </div>
</div>
<div id="footer">
<img src="${RESOURCE}/eng/images/copy_right.jpg" />
<a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/eng/images/dtact_logo.jpg" border="0" /></a>
<a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/eng/images/virus_icon.jpg" border="0" /></a>
</div>
</body>
</html>
